<html>
<script>
function test() {
    function transactionCallback()
    {
        document.getElementById("result").innerHTML = "Callback was called. Test passed";
    }
    var db = openDatabase("DatabaseCallbackDeferred", "1.0", "", 1);
    db.transaction(function(tx) { tx.executeSql("CREATE TABLE IF NOT EXISTS CallbackDeferredTest (randomData)", []); }, transactionCallback, transactionCallback);

    alert("Wait for a few seconds and close it");
}
</script>
<body onload="test()">
<p id="result">Wait...</p>
</body>
</html>
